import Request from './request'

const instance = new Request({
  baseURL: '/api',
  timeout: 50000
})

const request = <T = any>(config: Record<string, any>) => {
  return instance.request<T>(config)
}

export default request
